using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;


using CS6238Project2;
using CS6238Project2.Banking.Commerce;
using CS6238Project2.Banking.Communication;
using CS6238Project2.Banking.Tools;
using CS6238Project2.Banking.Entity;


namespace CS6238Project2.Banking.Tools
{
    /// <summary>
    /// The purpose of the class is to provide spawned data for testing purposes
    /// </summary>
    public static class Spawn
    {
        


        public static BindingList<Purchase> Purchases(WordList wordList, int size)
        {
            BindingList<Purchase> purchases = new BindingList<Purchase>();
            Random random = new Random();
            
            for (int i = 0; i < size; i++)
            {
                purchases.Add(new Purchase(
                                    new Good(wordList.Generate, random.Next(0, 100)), 
                                    random.Next(0, 1000)));
            }
            return purchases;

        }

        public static BindingList<Good> Goods(WordList wordList, int size)
        {
            BindingList<Good> goods = new BindingList<Good>();
            Random random = new Random();
            
            for (int i = 0; i < size; i++)
            {
                goods.Add(new Good(wordList.Generate, random.Next(0, 100)));
            }
            return goods;
        }






    }

    


}
